<?php
class Link extends Model {
	protected $validate = array(
		array('cateid', 'require', '分类不能为空'),
		array('name', 'require', '名称不能为空'),
		array('url', 'require', '地址不能为空'),
	);
	
	public function setTable() {
		$this->table = $this->db->getTable('link');
	}
	
	public static function getTable() {
		return $this->db->getTable('link');
	}
}
?>